# utils.pri
# This file includes settings for compiling the utilities library, including bit manipulation.
QT       += network
QT += serialport printsupport
win32{
    LIBS += -Ldll -lws2_32
}

MOC_DIR   = temp/moc
RCC_DIR   = temp/rcc
UI_DIR    = temp/ui
OBJECTS_DIR  = temp/obj

# Define the include directory for the utilities header files
INCLUDEPATH += $$PWD/001_FloraLogger \
               $$PWD/002_DataParser \
               $$PWD/003_BitManipulation \
               $$PWD/004_FloraIniManager \
               $$PWD/007_modbusServer/src \
               $$PWD/007_modbusServer/    \
               $$PWD/008_netWork/    \
               $$PWD/009_TooltipManager/   \
               $$PWD/010_MemoryInfo_window/ \
               $$PWD/011_WindowUtils/  \
               $$PWD/012_FloraCommunitModel/ \
               $$PWD/013_protocol256/      \
               $$PWD/014_QCustomPlot/       \
               $$PWD/015_ProcessMonitor/  \
               $$PWD/016_StateManager/ \
               $$PWD/017_QtConsoleModule/QtConsoleModule \
               $$PWD/

include($$PWD/017_QtConsoleModule/QtConsoleModule.pri)
win32 {
    # Windows 平台，链接 Psapi.lib
    LIBS += -lpsapi
    SOURCES +=$$PWD/010_MemoryInfo_window/MemoryMonitor.cpp
    HEADERS +=$$PWD/010_MemoryInfo_window/MemoryMonitor.h
}

SOURCES += \
    $$PWD/001_FloraLogger/FloraLogger.cpp \
    $$PWD/002_DataParser/DataParser.c \
    $$PWD/002_DataParser/ProtocolParser.cpp \
    $$PWD/004_FloraIniManager/FloraIniManager.cpp \
    $$PWD/005_FileManager/FileManager.cpp \
    $$PWD/006_FilterModule/FilterModule.cpp \
    $$PWD/007_modbusServer/ModbusClient.cpp \
    $$PWD/007_modbusServer/ModbusClient_dev.cpp \
    $$PWD/007_modbusServer/ModbusServer.cpp \
    $$PWD/007_modbusServer/modbusmanger.cpp \
    $$PWD/007_modbusServer/src/*.c \
    $$PWD/008_netWork/TcpClient.cpp \
    $$PWD/008_netWork/TcpServer.cpp \
    $$PWD/008_netWork/UdpSocket.cpp \
    $$PWD/008_netWork/UdpCommunicator.cpp \
    $$PWD/009_TooltipManager/TooltipManager.cpp \
    $$PWD/011_WindowUtils/WindowUtils.cpp \
    $$PWD/012_FloraCommunitModel/floracommunitybus.cpp \
    $$PWD/012_FloraCommunitModel/floracommunitydevice.cpp \
    $$PWD/012_FloraCommunitModel/floracommunitydevicemanger.cpp \
    $$PWD/012_FloraCommunitModel/floracommunityserial.cpp \
    $$PWD/013_protocol256/protocol256.c \
    $$PWD/014_QCustomPlot/qcustomplot.cpp \
    $$PWD/016_StateManager/statemanager.cpp \
    $$PWD/commom.cpp

HEADERS += \
    $$PWD/002_DataParser/ProtocolParser.h \
    $$PWD/003_BitManipulation/BitManipulation.h \
    $$PWD/001_FloraLogger/FloraLogger.h  \
    $$PWD/002_DataParser/DataParser.h \
    $$PWD/004_FloraIniManager/FloraIniManager.h \
    $$PWD/005_FileManager/FileManager.h \
    $$PWD/006_FilterModule/FilterModule.h \
    $$PWD/007_modbusServer/ModbusClient.h \
    $$PWD/007_modbusServer/ModbusClient_dev.h \
    $$PWD/007_modbusServer/ModbusComm.h \
    $$PWD/007_modbusServer/ModbusServer.h \
    $$PWD/007_modbusServer/modbusmanger.h \
    $$PWD/007_modbusServer/src/*.h \
    $$PWD/008_netWork/TcpClient.h \
    $$PWD/008_netWork/TcpServer.h \
    $$PWD/008_netWork/UdpSocket.h \
    $$PWD/008_netWork/UdpCommunicator.h \
    $$PWD/009_TooltipManager/TooltipManager.h \
    $$PWD/011_WindowUtils/WindowUtils.h \
    $$PWD/012_FloraCommunitModel/floracommunitybus.h \
    $$PWD/012_FloraCommunitModel/floracommunitydevice.h \
    $$PWD/012_FloraCommunitModel/floracommunitydevicemanger.h \
    $$PWD/012_FloraCommunitModel/floracommunityserial.h \
    $$PWD/013_protocol256/date_protocol.h \
    $$PWD/013_protocol256/protocol256.h \
    $$PWD/014_QCustomPlot/qcustomplot.h \
    $$PWD/015_ProcessMonitor/ProcessMonitor.h \
    $$PWD/016_StateManager/statemanager.h \
    $$PWD/commom.h


# Optionally, if you want to create a static or shared library, uncomment the following:
# CONFIG += staticlib
# CONFIG += shared
